<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <script src="./js/gt.js"></script>
    <title>极验验证</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        .container {
            width: 100vw;
            height: 100vh;
        }
    </style>
</head>
<body>
    <section class="container">
        <div id="captcha"></div>
        <div id="text"></div>
    </section>
    <script src="./js/index_8080.js"></script>
    <script>
        // 与RN通信
        // 接受消息
        window.onload = function () {
            document.addEventListener('message', function (message) {
                const data = JSON.parse(message.data)
                // window.document.querySelector('#text').innerHTML = 'data.to:' + data.to + '|| data.type: ' + data.type
                window.to = data.to
                window.type = data.type
            })
            // 发送消息
            // setTimeout(() => {
            //     window.postMessage('loaded')
            // }, 500)
        }
    </script>
</body>
</html>
